<style>
    .nav > li > a:hover, .nav > li > a:focus {
        background-color: #fff;
        text-decoration: none;
</style>
<div>
    <div class="col-lg-12">
        <section class="panel">
            <div class="panel-body">
                <header class="m-b-30">
                    <ul class="nav nav-tabs">
                        <li class="top-tab">
                            <a href="#total" class="total-tab" onclick="url(0)"  data-toggle="tab" aria-expanded="false">
                                总积分排行
                            </a>
                        </li>
                        <li class="top-tab">
                            <a href="#one_week" class="one_week-tab" onclick="url(1)" data-toggle="tab" aria-expanded="false">
                                第一周积分排行
                            </a>
                        </li>
                        <li class="top-tab">
                            <a href="#two_week" class="two_week-tab" onclick="url(2)"  data-toggle="tab" aria-expanded="false">
                                第二周积分排行
                            </a>
                        </li>
                        <li class="top-tab">
                            <a href="#three_week" class="three_week-tab" onclick="url(3)"  data-toggle="tab" aria-expanded="false">
                                第三周积分排行
                            </a>
                        </li>
                        <li class="top-tab active">
                            <a href="#four_week" class="four_week-tab show" onclick="url(4)"  data-toggle="tab" aria-expanded="true">
                                第四周积分排行
                            </a>
                        </li>
                    </ul>
                </header>
                <div class="panel-body">
                    <div class="tab-content">
                        <div id="four_week" class="tab-pane active">
                            <section id="no-more-tables">
                                <table class="table table-bordered table-striped table-condensed cf">
                                    <thead class="cf">
                                    <tr>
                                        <td style="width: 200px;">名次</td>
                                        <td style="width: 300px;">昵称</td>
                                        <td style="width: 300px;">第四周积分</td>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    <?php
                                    if(count($this->score_list) > 0){
                                        foreach ($this->score_list as $key=>$_info) { ?>
                                            <tr>
                                                <td data-title="名次"><?php echo $key+1; ?></td>
                                                <td data-title="昵称">
                                                    <?php echo $_info['nickname']; ?>
                                                </td>
                                                <td data-title="总积分">
                                                    <?php echo $_info['four_week_score']; ?>
                                                </td>
                                            </tr>
                                        <?php }} ?>
                                    </tbody>
                                </table>
                                <?php echo $this->pageStr?>
                            </section>
                        </div>
                    </div>
                </div>
        </section>
    </div>
</div>

<script>
function url(type){
    if(type == 0){
        location.href = '/score/index';
    }else if(type == 1){
        location.href = '/score/one-week-score';
    }else if(type == 2){
        location.href = '/score/two-week-score';
    }else if(type == 3){
        location.href = '/score/three-week-score';
    }else if(type == 4){
        location.href = location.href;
    }
}
</script>